  {% include "header.html" %}
  <script type="text/javascript" >
    var agency_id = "{{ agency_id }}";
    var route_type = "{{ route_type }}";
  </script>
  <h1>Stop  List <a href="http://code.google.com/transit/spec/transit_feed_specification.html#routes_txt___Field_Definitions">Refer</a></h1>
  {% if prompt %}
  <p id="prompt">{{ prompt }}</p>
  {% endif %}
  <div id="editor">
    <form method="POST" action="{{ url }}" id="editorform">
      <table>
        <tr>
          <th>Items</th>
          <th>Values</th>
        </tr>
        <tr>
          <td>ID</td>
          <td><input name = "stop_id" id = "stop_id" type="TEXT" value="{{ stop.id }}"/></td>
        </tr>
        <tr>
          <td>Name</td>
          <td><input name = "stop_name" id = "stop_name" type="TEXT" value="{{ stop.name }}"/></td>
        </tr>
        <tr>
          <td>Code</td>
          <td><input name = "stop_code" id = "stop_code" type="TEXT" value="{{ stop.code }}"/></td>
        </tr>
        <tr>
          <td>Zone ID</td>
          <td><input name = "zone_id" id = "zone_id" type="TEXT" value="{{ stop.zone_id }}"/></td>
        </tr>
        <tr>
          <td>Description</td>
          <td><textarea name = "stop_desc">{{ stop.desc }}</textarea></td>
        </tr>
        <tr>
          <td>Url</td>
          <td><input name = "stop_url" id = "stop_url" type="TEXT" value="{{ stop.url }}"/></td>
        </tr>
        <tr>
          <td>Location Type</td>
          <td><input name = "location_type" id = "location_type" type="TEXT" value="{{ stop.location_type }}"/></td>
        </tr>
        <tr>
          <td>Parent Station</td>
          <td><input name = "parent_station" id = "parent_station" type="TEXT" value="{{ stop.parent_station }}"/></td>
        </tr>
        <tr>
          <td colspan="2">
            <input name = "stop_lat" id = "stop_lat" type="hidden" value="{{ stop.lat }}"/>
            <input name = "stop_lon" id = "stop_lon" type="hidden" value="{{ stop.lon }}"/>
            <input type="submit" id = "submit" value="{{ submit }}" name = "submit" />
          </td>
        </tr>
      </table>
  </form>


</div>
<div class="sort">
  <form method="POST" action="" name="search">
    <input type="text" value=""/> <input type="submit" value="Search"/>
  </form>


</div>
    <div class="pager">
      paging info: [<a href="#">1</a>] [<a href="#">2</a>] ... [<a href="#">last</a>] <input type="text" value="" size="4" maxlength="4"/> <input type="submit" value="Go" />
    </div>
    <table>
    <tr>
    <th>&nbsp;</th>
    <th>ID</th>
    <th>Name </th>
    <th><p>Latiude/Longitude</p>
      <p>(None Editable)</p></th>
    <th>Zone ID</th>
    <th>Code</th>
    <th>Description</th>
    <th>Location Type</th>
    <th>Parent Stop</th>
    <th>URL</th>
    <!--
    <th>Shared Patterns</th>
    <th>Shared Routes</th>
    -->
    <th>Action</th>
  </tr>
      {% for stop in stops %}
      <tr>
        <td><input type="checkbox" name="deleteid" value="{{stop.id}}"/></td>
        <td>{{stop.id}}</td>
        <td>{{stop.name}}</td>
        <td>({{stop.lat}}, {{stop.lon}})</td>
        <td>{{stop.zone_id}}</td>
        <td>{{stop.code}}</td>
        <td>{{stop.desc}}</td>
        <td>{{stop.location_type}}</td>
        <td>{{stop.parent_stop}}</td>

        <td>{{stop.url}}</td>
        <!--
    <td><a href="#">P1</a> <a href="#">P2</a> <a href="#">P3</a></td>
    <td><a href="#">R1</a> <a href="#">R2</a> <a href="#">R3</a></td>
    -->
        <td>
          <a href="/admin/stop?act=edit&id={{stop.id}}">Edit</a>&nbsp;
          <a href="/admin/stop?act=delete&id={{stop.id}}">Delete</a>
        </td>
      </tr>
      {% endfor %}
    </table>
    <div class="pager">
      [<a href="#">1</a>] [<a href="#">2</a>] ... [<a href="#">last</a>] <input type="text" value="" size="4" maxlength="4"/> <input type="submit" value="Go" />
    </div>
    <div class="control">
      <input type="submit" value="Delete All"/>
    </div>
  </body>
</html>
